<%@ page language="C#" autoeventwireup="true" codebehind="Connection.aspx.cs" inherits="Cyberwolf.Modules.PWCAPAdmin.Configuration.Connection" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=8">
</head>
<body class="frame">
    <form id="form1" runat="server">
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
        <script src='<%= ResolveUrl("../js/main.js") %>' type="text/javascript"></script>
        <asp:scriptmanager id="ScriptManager1" runat="server"></asp:scriptmanager>
        <div id="PWCAPAdminContainer">
            <div id="dvflash">
                <asp:literal id="litNoticeFlash" runat="server" enableviewstate="false"></asp:literal>
                <asp:literal id="litErrorFlash" runat="server" enableviewstate="false"></asp:literal>
            </div>
            <div id="dvcontent">
                <div class="form">
                    <div class="cont">
                    <div>
                        <label for='<%= txtEnvironment.ClientID %>'><%= Localization.GetString("Environment.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtEnvironment" runat="server" maxlength="255" />
                        <asp:requiredfieldvalidator id="rfvEnvironment" controltovalidate="txtEnvironment" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtOrganization.ClientID %>'><%= Localization.GetString("Organization.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtOrganization" runat="server" maxlength="255" ReadOnly="true" Enabled="false" />
                        <asp:requiredfieldvalidator id="rfvOrganization" controltovalidate="txtOrganization" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtLogicalName.ClientID %>'><%= Localization.GetString("LogicalName.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtLogicalName" runat="server" maxlength="255" />
                        <asp:requiredfieldvalidator id="rfvLogicalName" controltovalidate="txtLogicalName" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtDataSource.ClientID %>'><%= Localization.GetString("DataSource.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtDataSource" runat="server" maxlength="255" />
                        <asp:requiredfieldvalidator id="rfvDataSource" controltovalidate="txtDataSource" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtDescription.ClientID %>'><%= Localization.GetString("Description.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtDescription" runat="server" TextMode="MultiLine" Rows="2" Columns="80" />
                    </div>
                    <div>
                        <label for='<%= txtDatabaseServer.ClientID %>'><%= Localization.GetString("DatabaseServer.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtDatabaseServer" runat="server" maxlength="255" />
                        <asp:requiredfieldvalidator id="rfvDatabaseServer" controltovalidate="txtDatabaseServer" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtDatabaseName.ClientID %>'><%= Localization.GetString("DatabaseName.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtDatabaseName" runat="server" maxlength="255" />
                        <asp:requiredfieldvalidator id="rfvDatabaseName" controltovalidate="txtDatabaseName" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtLoginID.ClientID %>'><%= Localization.GetString("LoginID.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtLoginID" runat="server" maxlength="255" Text="" />
                        <asp:requiredfieldvalidator id="rfvLoginID" controltovalidate="txtLoginID" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>
                    </div>
                    <div>
                        <label for='<%= txtPassword.ClientID %>'><%= Localization.GetString("Password.Text", this.LocalResourceFile) %></label>
                        <asp:textbox id="txtPassword" runat="server" maxlength="255" textmode="Password" Text="" />
                        <%--<asp:requiredfieldvalidator id="rfvPassword" controltovalidate="txtPassword" Display="Dynamic" runat="server" ValidationGroup="Connection">*</asp:requiredfieldvalidator>--%>
                    </div>
                    <div class="buttons">
                        <asp:button id="btnSave" runat="server" OnClick="btnSave_Click" validationgroup="Connection" />
                        <asp:button id="btnCancel" runat="server" causesvalidation="false" OnClientClick="return closeWindow();" />
                    </div>
                    </div>
                </div>
            </div>
            <div id="modalbg"></div>
        </div>
    </form>
</body>
</html>
